<?php
/**
 * Created by PhpStorm.
 * User: helloxingtongshi
 * Date: 2016-05-16
 * Time: 20:00
 */
//链接数据库
$con=mysql_connect('localhost','root','root');
    if(!$con){
        die('链接失败：'.mysql_error());
    }
$dbname='money';
mysql_select_db($dbname,$con);
mysql_query("set names utf8");//设置编码格式
